//
//  CinemaTableViewCell.m
//  UI13-豆瓣电影
//
//  Created by dllo on 15/12/24.
//  Copyright © 2015年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "CinemaTableViewCell.h"

@implementation CinemaTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{


    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.beijing = [[UIImageView alloc]init];
        [self.contentView addSubview:_beijing];
        
        
        self.title = [[UILabel alloc]init];
        _title.font = [UIFont systemFontOfSize:25];
        //   _title.backgroundColor = [UIColor yellowColor];
        [self.beijing addSubview:_title];
        
        self.address = [[UILabel alloc]init];
     //   _address.backgroundColor = [UIColor yellowColor];
        [self.beijing addSubview:_address];
        _address.numberOfLines = 0;
        
        
        self.phone = [[UILabel alloc]init];
      //  _phone.backgroundColor = [UIColor yellowColor];
        [self.beijing addSubview:_phone];
        
        
    }

    return self;

}

-(void)layoutSubviews
{

    [super layoutSubviews];
    
    _beijing.frame = CGRectMake(5, 10, self.contentView.bounds.size.width - 20, self.contentView.bounds.size.height - 20);
    _beijing.image = [UIImage imageNamed:@"bg_eventlistcell"];
    
    _title.frame  =CGRectMake(5, 10, 300, 50);
    _address.frame = CGRectMake(5, 60, 320, 50);
    _phone.frame = CGRectMake(15, 120, 200, 30);


}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
